<?php


namespace App\Models;


use App\Engine\BaseModel;

class UserBindGoods extends BaseModel
{
    protected $table = 'user_bind_goods';
    protected $fillable = [
        'uid',
        'bind_id',
        'date',
        'state',
        'qrcode',
    ];
    public $with=["user","goods"];

    public function goods()
    {
        return $this->belongsTo("App\Models\BindGood","bind_id","id");
    }



}
